ActiveAdmin.register Post do
  menu :parent => "Posts"
  permit_params :title, :content

  index do
    column :title
    column :content
    column :created_at
    default_actions
  end

  filter :title
  filter :created_at

  form do |f|
    f.inputs "Post Details" do
      f.input :title
      f.input :content
    end
    f.actions
  end

end
